<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./style/style.css">
</head>

<body>
    <!-- 轮播图大盒子 -->
    <div class="swiper-container">
        <!-- 轮播图内容 -->
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="./img/a1.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./img/a2.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./img/a3.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./img/a4.jpg" alt=""></div>
            <div class="swiper-slide"><img src="./img/a5.jpg" alt=""></div>
        </div>
        <!-- 上一页 -->
        <div class="swiper-button-prev"> &lt; </div>
        <!-- 下一页 -->
        <div class="swiper-button-next"> &gt; </div>
        <!-- li标签 -->
        <div class="swiper-pagination">
            <!-- <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li> -->
        </div>
    </div>
    <script src="./index.js"></script>
    <script>
        new Swiper('.swiper-container', {
            pagination: {
                el: ".swiper-pagination"
            },
            navigation: {
                prevEle: ".swiper-button-prev",
                nextEle: ".swiper-button-next"
            },
            autoplay: 1000,
            direction: "horizontal"
        })
    </script>
</body>

</html>